<div class="task">
<?php include ('buttons.tpl'); ?>
</div>
<?php if ($error) { ?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<h2><?php echo $heading_title; ?></h2>
<div class="description"><?php echo $heading_description; ?></div>

<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
  <div id="tabs">
	<ul>
	  <li><a href="#tabs-1"><?php echo $tab_general; ?></a></li>
	</ul>
	<div id="tabs-1">
	
  	  <?php foreach ($options as $option) { ?>
  	  <fieldset>
    	<legend style="border: 1px solid #cccccc;"><?php echo $option['language']; ?></legend>
    	<table>
      	  <tr>
            <td width="185"><span class="required">*</span> <?php echo $entry_name; ?></td>
            <td><input name="language[<?php echo $option['language_id']; ?>][name]" value="<?php echo $option['name']; ?>" />
            <?php if ($error_name) { ?>
            <span class="error"><?php echo $error_name; ?></span>
            <?php } ?></td>
      	  </tr>
    	</table>
  	  </fieldset>
  	  <?php } ?>
  	</div>
  </div>
</form>

<script type="text/javascript"><!--
	$(function() {
		//var cookie = $('.selector').tabs('option', 'cookie');
		//$('.selector').tabs({ cookie: { expires: 30 } });
		$("#tabs").tabs();
		//$('.selector').tabs('option', 'cookie', { expires: 30 });
	});
//--></script>